#!/bin/sh

. /etc/nstat.conf

IPTABLES="/sbin/iptables"

cd ${pyscriptdir}
iplist=`${iplist_cmd}`

mv /etc/provide_list /etc/provide_list.previous
echo $iplist >/etc/provide_list

diff /etc/provide_list /etc/provide_list.previous >/dev/null && exit

${IPTABLES} -F provide

for i in ${iplist}
do
 ${IPTABLES} -A provide -s $i -j loginet
done

